import type {
    Component,
    ConfigItem,
    resourcesList,
} from "../../../../../../component";
import type { JH } from "../../../../test/run";
//, DescCompoundType<JQueryStatic, JQuery<HTMLElement>>
export class QqGroup
    implements Component<JQueryStatic, JH> {
    pack() {
        console.log("packing....");
    }
    getName() {
        return "qqGroup";
    }
    getJs(): (
        | { type: "file"; path: string }
        | { type: "element"; selector: string }
    )[] {
        return [
        ];
    }
    getCss(): (
        | { type: "file"; path: string }
        | { type: "element"; selector: string }
    )[] {
        return [
        ];
    }
    afterLoad(
        $: JQueryStatic,
        dom: JH,
        resources: resourcesList[],
        domSelector: string
    ) {
    }
    config(
        configArr: ConfigItem<JQueryStatic, JH>[],
        resources: resourcesList[]
    ) {
        configArr.push({
            domSelector: "DOMSELECTOR",
            desc: [
                {
                    name: "修改加群链接",
                    value: "",
                    inputType: "text",
                    onchange($, ele, val) {
                        ele.find("iframe").attr("src", val.value)
                    },
                }
            ],
            trigger: ($: JQueryStatic, domSelector: string) => {
                return $(domSelector);
            },
        });
    }
    require() {
        return {
        };
    }
}
